package com.yuantong.xyerp.core.api.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 往来单位（供应商、客户、代理商）
 * </p>
 *
 * @author JianguoYin
 * @since 2021-07-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Merchant对象", description="往来单位（供应商、客户、代理商）")
public class Merchant implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "往来单位编号")
    private String number;

    @ApiModelProperty(value = "往来单位名称")
    private String name;

    @ApiModelProperty(value = "S-供应商；P-采购商；A-代理商; 分属于3个页面, 类型由页面自动提供")
    private String type;

    @ApiModelProperty(value = "1-外部代理，0-内部代理")
    private String extAgent;

    @ApiModelProperty(value = "往来单位可用的产品大品类，可多个。大品类code串联（每两个字符表示一个大品类），当为null表示全部")
    private String categoryCodeList;

    @ApiModelProperty(value = "省")
    private String provinceId;

    @ApiModelProperty(value = "市")
    private String cityId;

    @ApiModelProperty(value = "区")
    private String areaId;

    @ApiModelProperty(value = "详细地址")
    private String address;

    @ApiModelProperty(value = "邮编")
    private String postcode;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "联系人姓名")
    private String contactsName;

    @ApiModelProperty(value = "联系人手机")
    private String contactsMobile;

    @ApiModelProperty(value = "联系人部门")
    private String contactsDepartment;

    @ApiModelProperty(value = "联系人职位")
    private String contactsPosition;

    @ApiModelProperty(value = "联系人email")
    private String contactsEmail;

    @ApiModelProperty(value = "发票抬头")
    private String invoiceName;

    @ApiModelProperty(value = "发票纳税人识别号")
    private String invoiceCode;

    @ApiModelProperty(value = "发票开户行")
    private String invoiceBank;

    @ApiModelProperty(value = "发票银行账号")
    private String invoiceAccount;

    @ApiModelProperty(value = "发票联系电话")
    private String invoiceTele;

    @ApiModelProperty(value = "发票银行地址")
    private String invoiceAddress;

    @ApiModelProperty(value = "维护人员ID（客户服务专员）")
    private String operatorId;

    @ApiModelProperty(value = "最近修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "创建人ID")
    private String creatorId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "0-停用，1-正常")
    private String status;

    @ApiModelProperty(value = "0-删除，1-正常")
    private String deleteStatus;


}
